package com.hdax.dmw.order.feign;

import com.hdax.dmw.entity.scheduler.SchedulerSeat;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "dmw-services-scheduler")
public interface SchedulerSeatFeign {

    @PostMapping(path = "/scheduler/seat/detail")
    SchedulerSeat detail(
            @RequestParam("scheduleId")Long scheduleId,
            @RequestParam("x")Integer x,
            @RequestParam("y")Integer y
    );

    @PostMapping(path = "/scheduler/seat/updates")
    void batchUpdate(List<SchedulerSeat> schedulerSeats);
}
